package String_;

/**
 * @author 王艺锡
 * @version 1.0
 */
public class Exercise02 {
    public static void main(String[] args) {
        Test1 t1 = new Test1();
        t1.change(t1.str, t1.ch);
        System.out.print(t1.str + " and ");
        System.out.println(t1.ch);
    }
}

class Test1{
    String str = new String("wyx");
    final char ch[] = {'j','a','v','a'};
    public void change(String str,char ch[]){
        str = "java";
        ch[0] = 'h';
    }

}
